<template>
	<view class="institutionalIntroduction" style="padding-bottom:40rpx;">
		<view class="back">
			<image class="back-img" @click="back" src="../../../static/index/fanhui.png" mode=""></image>
			<text class="back-name">机构介绍</text>
		</view>
		<view class="introduce">
			<image src="../../../static/publicwelfare/bigHuizhang.png" mode=""></image>
			<text>河南省慈善总会</text>
			<text>已在民政部门注册有公开募捐资格的慈善组织</text>
		</view>
		<view class="basic-information" @click="checkInfo">
			<view class="basic-information-title">
				<text class="line"></text><text>基本信息</text>
			</view>
			<view class="basic-information-content">
				河南省慈善总会是全省性公益社会团体，2001年9月26
				日成立，业务主管单位为河南省民政厅，日常办事机构
				为秘书处，秘书长为社团法人代表。 我们的主要职责...
			</view>
		</view>
		<view class="Pro-bono-projects">
			<view class="basic-information-title">
				<text class="line"></text><text>公益项目</text>
			</view>
			<view class="Pro-bono-projects-content">
				<scroll-view scroll-y="true" :style="{height:scrollH+'rpx'}" class="scroll-Y">
					<view class="projects-content-box">
						<view class="projects-content-box-left">
							<view class="one">
								河南灾后校园重建
							</view>
							<view class="two">
								推动河南省受灾地区灾后重建工作，
								保障复学复课
							</view>
							<view class="three">
								已筹<text>110，120积分</text>
							</view>
							<view class="four">
								<text>河南</text>
								<text>灾后重建</text>
							</view>
						</view>
						<view class="projects-content-box-right">
							<image style="width: 286rpx;height: 210rpx;border-radius: 20rpx;" src="../../../static/publicwelfare/environmentBg.png" mode=""></image>
						</view>
					</view>
					<view class="projects-content-box">
						<view class="projects-content-box-left">
							<view class="one">
								河南灾后校园重建
							</view>
							<view class="two">
								推动河南省受灾地区灾后重建工作，
								保障复学复课
							</view>
							<view class="three">
								已筹<text>110，120积分</text>
							</view>
							<view class="four">
								<text>河南</text>
								<text>灾后重建</text>
							</view>
						</view>
						<view class="projects-content-box-right">
							<image style="width: 286rpx;height: 210rpx;border-radius: 20rpx;" src="../../../static/publicwelfare/environmentBg.png" mode=""></image>
						</view>
					</view>
					<view class="" v-if="isShow">
						<view class="projects-content-box">
							<view class="projects-content-box-left">
								<view class="one">
									河南灾后校园重建
								</view>
								<view class="two">
									推动河南省受灾地区灾后重建工作，
									保障复学复课
								</view>
								<view class="three">
									已筹<text>110，120积分</text>
								</view>
								<view class="four">
									<text>河南</text>
									<text>灾后重建</text>
								</view>
							</view>
							<view class="projects-content-box-right">
								<image style="width: 286rpx;height: 210rpx;border-radius: 20rpx;" src="../../../static/publicwelfare/environmentBg.png" mode=""></image>
							</view>
						</view>
						<view class="projects-content-box">
							<view class="projects-content-box-left">
								<view class="one">
									河南灾后校园重建
								</view>
								<view class="two">
									推动河南省受灾地区灾后重建工作，
									保障复学复课
								</view>
								<view class="three">
									已筹<text>110，120积分</text>
								</view>
								<view class="four">
									<text>河南</text>
									<text>灾后重建</text>
								</view>
							</view>
							<view class="projects-content-box-right">
								<image style="width: 286rpx;height: 210rpx;border-radius: 20rpx;" src="../../../static/publicwelfare/environmentBg.png" mode=""></image>
							</view>
						</view>
						<view class="projects-content-box">
							<view class="projects-content-box-left">
								<view class="one">
									河南灾后校园重建
								</view>
								<view class="two">
									推动河南省受灾地区灾后重建工作，
									保障复学复课
								</view>
								<view class="three">
									已筹<text>110，120积分</text>
								</view>
								<view class="four">
									<text>河南</text>
									<text>灾后重建</text>
								</view>
							</view>
							<view class="projects-content-box-right">
								<image style="width: 286rpx;height: 210rpx;border-radius: 20rpx;" src="../../../static/publicwelfare/environmentBg.png" mode=""></image>
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
			<view class="checkMore" @click="checkMore">
				{{isShow?'收起':'查看更多项目'}}<image src="../../../static/mine/bottomjiantou.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isShow:false,
				scrollH:650,//初始高度
			}
		},
		methods: {
			back(){
				uni.navigateBack()
			},
			//查看更多
			checkMore(){
				this.isShow = !this.isShow
				if(this.isShow){
					this.scrollH = 900;
				}else{
					this.scrollH = 650;
				}
			},
			//查看基本信息
			checkInfo(){
				uni.navigateTo({
					url:'/myPackageA/index/environment/basicinformation'
				})
			}
		}
	}
</script>

<style scoped lang="less">
	.projects-content-box{
		width: 100%;
		height: auto;
		display: flex;
		justify-content: space-between;
		border-bottom: 2rpx solid #F2F2F2;
		padding-bottom: 38rpx;
		margin-bottom: 20rpx;
		.projects-content-box-left{
			flex: 1;
			.one{
				font-size: 28rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #333333;
			}
			.two{
				font-size: 24rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				line-height: 36rpx;
				color: #999999;
				margin: 10rpx 0;
			}
			.three{
				font-size: 28rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #999999;
				text{
					color: #FF7200;
				}
			}
			.four{
				display: flex;
				flex-wrap: wrap;
				margin-top: 10rpx;
				text{
					font-size: 24rpx;
					padding: 5rpx 10rpx;
					border-radius: 8rpx;
					background: #F5C49C;
					color: #FF7200;
					display: flex;
					justify-content: center;
					align-items: center;
					margin-right: 20rpx;
				}
			}
		}
		.projects-content-box-right{
			width: 286rpx;
		}
	}
	.Pro-bono-projects{
		margin: 40rpx 0;
		width: 100%;
		// height: 712rpx;
		height: auto;
		padding: 20rpx 40rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 20rpx;
		position: relative;
		.checkMore{
			position: absolute;
			bottom: 0;
			left: 0;
			height: 106rpx;
			width: 100%;
			line-height: 106rpx;
			text-align: center;
			font-size: 32rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #FF7200;
			image{
				width: 14rpx;
				height: 14rpx;
				margin-left: 10rpx;
			}
		}
		
		.Pro-bono-projects-content{
			height: 800rpx;
			margin-top: 20rpx;
			height: auto;
			padding-bottom: 30rpx;
		}
		.basic-information-title{
			display: flex;
			align-items: center;
			.line{
				width: 4rpx;
				height: 32rpx;
				background: #FF7200;
				opacity: 1;
				border-radius: 0px;
			}
			text{
				font-size: 32rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #333333;
				margin-left: 20rpx;
			}
		}
	}
	.basic-information{
		margin: 40rpx 0;
		width: 100%;
		height: auto;
		padding: 20rpx 40rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 20rpx;
		.basic-information-content{
			margin-top: 10rpx;
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			line-height: 44rpx;
			color: #999999;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 3;
			overflow: hidden;
			
		}
		.basic-information-title{
			display: flex;
			align-items: center;
			.line{
				width: 4rpx;
				height: 32rpx;
				background: #FF7200;
				opacity: 1;
				border-radius: 0px;
			}
			text{
				font-size: 32rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #333333;
				margin-left: 20rpx;
			}
		}
	}
	.introduce{
		width: 100%;
		height: auto;
		padding: 15rpx 40rpx 40rpx;
		background: #FFFFFF;
		opacity: 1;
		border-radius: 0px 0px 20rpx 20rpx;
		display: flex;
		flex-direction: column;
		line-height: 56rpx;
		image{
			width: 136rpx;
			height: 136rpx;
		}
		text:first-child{
			font-size: 36rpx;
			font-family: Source Han Sans CN;
			font-weight: 500;
			color: #333333;
			
		}
		text:last-child{
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #999999;
		}
	}
.back {
		padding-top: 80rpx;
		width: 100%;
		height: 176rpx;
		background-color: #24AE3E;
		display: flex;
		align-self: center;
		padding-left: 0 !important;
		padding-right: 0 !important;

		.back-img {
			width: 40rpx;
			height: 40rpx;
			margin-top: 10rpx;
			margin-left: 40rpx;
		}

		.back-name {
			font-size: 18px;
			line-height: 31px;
			font-family: Source Han Sans CN;
			font-weight: 400;
			color: #FFFFFF;
			margin-right: 18rpx;
		}
	}
</style>
